package com.icss.th.fulltext;

import java.util.List;

import com.icss.th.db.pojo.PageInfo;
import com.icss.th.fulltext.pojo.SearchResult;

public interface IFullTextSearch 
{
	/**
	 * 简单检索
	 * @param subject
	 * @param keyword
	 * @return
	 */
	List<SearchResult> simpleSearch(String subject, String keyword, PageInfo pageInfo);
	
	/**
	 * 高级检索
	 * @param subject
	 * @param type
	 * @param containKeyword
	 * @param notContainKeyword
	 * @param startYear
	 * @param endYear
	 * @return
	 */
	List<SearchResult> advanceSearch(String subject, String type, String containKeyword, String notContainKeyword, int startYear, int endYear, PageInfo pageInfo);

	/**
	 * 获取卷子中的题目
	 * @param paperId
	 * @return
	 */
	List<SearchResult> getExamByPaperId(String paperId, PageInfo pageInfo);
	
}
